-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support listener attributes #3863
Support listener attributes #3863
Conversation
a8a4a41
to
cbe94e0
Compare
pkg/deploy/elbv2/listener_manager.go
Outdated
@@ -354,3 +366,16 @@ func buildResListenerStatus(sdkLS ListenerWithTags) elbv2model.ListenerStatus { | |||
ListenerARN: awssdk.ToString(sdkLS.Listener.ListenerArn), | |||
} | |||
} | |||
|
|||
var PROTOCOLS_WITH_ATTRIBUTES = map[elbv2model.Protocol]bool{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
- Define these constants at the beginning
- Change from
var
toconst
- Change constant name to reflect listener attributes
PROTOCOLS_SUPPORTING_LISTENER_ATTRIBUTES
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved 1 and 3.
- Defined it at the beginning
- Changed constant name to reflect listener attributes PROTOCOLS_SUPPORTING_LISTENER_ATTRIBUTES.
However, for 2. I can't set it as const because maps cannot be declared as constants in Go.
cbe94e0
to
12a33e6
Compare
12a33e6
to
174ad83
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: M00nF1sh, shraddhabang, wweiwei-li The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue
#3843
Description
Add listener attributes support by
service.beta.kubernetes.io/aws-load-balancer-listener-attributes.${Protocol}-{Port}
annotation, which allows dynamically configuration of protocol and port. With the combination of protocol and port, it serves as a unique identifier, enabling us to identify the listener and set attributes to it accordingly. For example, setservice.beta.kubernetes.io/aws-load-balancer-listener-attributes.TCP-80: tcp.idle_timeout.seconds=700
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯